package com.mgee.netty.server.pojo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 聊天日志信息pojo类
 * 
 * @author mileswan
 *
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class ChatLogInfo {
	// 上一次发送的聊天内容
	private String last_content;
	// 上一次发送时间
	private Date last_sent_time;
	// 重复次数
	private Integer repeated_count;
    // 是否警告过
    private Boolean warned;
    
    public ChatLogInfo(String last_content, Date last_sent_time, Integer repeated_count, Boolean warned) {
    	this.last_content = last_content;
    	this.last_sent_time = last_sent_time;
    	this.repeated_count = repeated_count;
    	this.warned = warned;
    }

}